package com.saycode.portal.article.service;

import com.saycode.common.enums.StatusEnum;
import com.saycode.common.beans.Article;
import com.saycode.common.beans.ArticleContent;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by zhangyanhui on 2017/6/14.
 */
public interface ArticleService {
    //获取全部的文章
    List<Article> findAll();
    //根据ID获取文章概要信息
    Article findById(Long id);
    //根据ID获取文章内容
    ArticleContent findContentById(Long id);
    Page<Article> findByStatusAndContentType(StatusEnum statusEnum,String contentType, int pageNum);
}
